class Car:
    def move(self):
        print("%s🚗在跑"%self.name)
    def toot(self):
        print("%s🚗在鸣笛"%self.name)
    def __del__(self):
        print("销毁程序已启动")
if __name__ == "__main__":
    bmw = Car()
    bmw.name = "宝马🐎"
    bmw.color = "红色"
    print(bmw.name)
    print(bmw.color)
    print(bmw)
    bmw.move()
    bmw.toot()
#听风暖

